From b243b247936f4350d15078c0d4335dfc22b51be8 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Wed, 19 Jan 2022 01:10:52 +0200 Subject: [PATCH] HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro Fixes building for Qt with OpenGL ES. --- ...tTexture_no_vtkOpenGLCheckErrorMacro.patch | 24 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 25 insertions(+) create mode 100644 debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch diff --git a/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch b/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch new file mode 100644 index 000000000..0744d41ee --- /dev/null +++ b/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch @@ -0,0 +1,24 @@ +Description: HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro + Fixes building for Qt with OpenGL ES. +Author: Adrian Bunk + +--- vtk9-9.1.0+dfsg2.orig/GUISupport/Qt/vtkQWidgetTexture.cxx ++++ vtk9-9.1.0+dfsg2/GUISupport/Qt/vtkQWidgetTexture.cxx +@@ -18,7 +18,7 @@ + #include "vtkOpenGLResourceFreeCallback.h" + #include "vtkOpenGLState.h" + +-#include "vtkOpenGLError.h" ++//#include "vtkOpenGLError.h" + + #include + #include +@@ -98,7 +98,7 @@ vtkQWidgetTexture::vtkQWidgetTexture() + } + + this->Create2DFromRaw(width, height, 4, VTK_UNSIGNED_CHAR, this->ImageBuffer); +- vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw"); ++ //vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw"); + } + }; + } diff --git a/debian/patches/series b/debian/patches/series index 6c21f514a..11535dec5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,6 +5,7 @@ 50_fix_python-modules_path.patch 60_fix_path_perl.patch 83_allow_gles_platforms.patch +84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch 95_java_mach-arch_fix.patch 97_reproducible_builds.patch 98_fix_mpi4py.py -- 2.30.2